package com.xiaoyu.dao;

import com.xiaoyu.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User,Long>{
    User findByName(String name);

    User findByNameAndAge(String name,int age);
}
